)> Defined in Type: OrderedLiveQueryReactiveList.Queries Assembly: ReactiveList.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads
public WindowedLiveQuery<T> Take(int count)public WindowedLiveQuery<T> Take(IObservable<int> count)
1. Overload
public WindowedLiveQuery<T> Take(int count)
View source (opens in a new tab)
Summary: Exposes only the first items.
Parameters
| Name | Type | Description |
|---|---|---|
count | int (opens in a new tab) | The most items to expose. |
Returns: WindowedLiveQuery
2. Overload
public WindowedLiveQuery<T> Take(IObservable<int> count)
View source (opens in a new tab)
Summary: Exposes only the first items, with a count that can change over time.
Parameters
| Name | Type | Description |
|---|---|---|
count | IObservable | An observable of the most items to expose. The view is empty until it emits, and negative values count as zero. |
Returns: WindowedLiveQuery